
emp.hometab={}

emp.hometab.switchHomeTab = function (require) {
    emp.hometab.onSuccess = require.success;
    emp.hometab.onError = require.error;
    emp.hometab.onEvent = require.event;
    emp.call("emp.hometab.switchHomeTab", require);
}

emp.hometab.onCallback=function(message,success,error,event){
    switch(message.apiType){
        case "emp.hometab.switchHomeTab":
            if (message.callBackType == "success") {
                if(emp.hometab.onSuccess) emp.hometab.onSuccess(message.data);
            }else if (message.callBackType == "error") {
                if(emp.hometab.onError) emp.hometab.onError(message.data);
            }
            break;
    }
}

emp.callbackList.push(emp.hometab.onCallback)
if(!emp.window)emp.window={}
emp.window.switchHomeTab=emp.hometab.switchHomeTab
